import 'package:flutter/material.dart';

class Base extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar:AppBar(
        title: Text("基础组件"),
      ) ,
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            RaisedButton(
              child: Text("文本"),
              onPressed: (){
                Navigator.of(context).pushNamed('/base/text');
              },
            ),
            RaisedButton(
              child: Text("按钮"),
              onPressed: (){
                Navigator.of(context).pushNamed('/base/button');
              },
            ),
            RaisedButton(
              child: Text("图片和icon"),
              onPressed: () {
                Navigator.of(context).pushNamed('/base/image');
              },
            ),
            RaisedButton(
              child: Text("单选框和复选框"),
              onPressed: (){
                Navigator.of(context).pushNamed('/base/select');
              },
            ),
            RaisedButton(
              child: Text("输入框和表单"),
              onPressed: (){
                Navigator.of(context).pushNamed('/base/form');
              },
            ),
            RaisedButton(
              child: Text("进度指示器"),
              onPressed: (){
                Navigator.of(context).pushNamed('/base/progress');
              },
            ),
          ],
        ),
      ),

    );
  }
}